# Sets the minimum version of CMake required to build the native library.
cmake_minimum_required (VERSION 3.20.0)

# Declares and names the project.
project(resource)

# set cmake
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED true)

add_library(test STATIC extern_test.cpp)
target_include_directories(test PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../tools/embed-resource)

# add target
add_executable(${PROJECT_NAME} main.cpp  test.cpp)
#add_executable(${PROJECT_NAME} main.cpp test.cpp)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../../tools/embed-resource)
target_link_libraries(${PROJECT_NAME} PUBLIC test)
